<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Dom</title>
		<script src="../../py/system.js" type="text/javascript"></script>
		<script src="../../py/system/dom/element.js" type="text/javascript"></script>
		<script src="../../py/system/dom/submit.js" type="text/javascript"></script>
		
		<script src="../../common/project/project.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/default.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/debug.js" type="text/javascript"></script>
	</head>
	<body> 
		<input type="text" value="msg" id="name">
			<hr>
		<textarea id="res" ondblclick="this.value = ''"></textarea>
		<script>
			
			Element.enableSubmitOnCtrlEnter('name', function(){
				alert('提交');
			});
			
			Element.enableSubmitOnCtrlEnter('res', function(){
				alert('提交');
			});
		
		</script>
	</body>  
</html>